package main

import (
	"unsafe"
	"fmt"
)

type student struct {
	name string
	age int
	num int
	school string
}

func main() {
	s1 := student{}
	s1P := &s1
	fmt.Println(s1P)
	s1Ptr := uintptr(unsafe.Pointer(s1P))  // unsafe.Pointer是桥梁
	fmt.Println(unsafe.Pointer(s1P))
	fmt.Println(s1Ptr)
}